import request from '@/utils/axios';
import constant from "@/utils/constant";
import appName from "../appName"

// 客户信息列表
export function getComCheckList(params) {
    return request({
      url: appName.NB+'/maintain/noteRule/queryList',
      method: 'post',
      data: params
    })
}

export function queryForNoteRule(eutblcode) {
    return request({
      url: appName.NB+`/common/select/queryForNoteRule?eutblcode=${eutblcode}`,
      method: 'get'
    })
}

export function checkPntype(params) {
    return request({
      url: appName.NB+'/maintain/noteRule/checkPntype',
      method: 'post',
      data: params
    })
}

export function checkSrpisno(params) {
    return request({
      url: appName.NB+'/maintain/noteRule/checkSrpisno',
      method: 'post',
      data: params
    })
}

export function editData(method, params) {
    return request({
      url: appName.NB+`/maintain/noteRule/editData?method=${method}`,
      method: 'post',
      data: params
    })
}

export function deleteData(params) {
    return request({
      url: appName.NB+'/maintain/noteRule/deleteData',
      method: 'post',
      data: params
    })
}

export function qureryListToExcel(pncode, pntype) {
  return request({
    url: appName.NB+`/maintain/noteRule/qureryListToExcel?pncode=${pncode}&pntype=${pntype}`,
    method: 'get'
  })
}

//检查照会代码
export function checkPncode(params) {
    return request({
      url: appName.NB+'/maintain/noteRule/checkPncode',
      method: 'post',
      data: params
    })
}

